<template>
  <el-table :data="list" style="width: 100%;padding-top: 15px;">
    <el-table-column label="通知信息">
      <template slot-scope="">
        派车单号：190926-01-125662，车辆：XK00001，驾驶员：张某某，超时未归队。请及时联系驾驶员！
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
import { transactionList } from '@/api/remote-search'

export default {
  filters: {
    statusFilter(status) {
      const statusMap = {
        success: 'success',
        pending: 'danger'
      }
      return statusMap[status]
    },
    orderNoFilter(str) {
      return str.substring(0, 30)
    }
  },
  data() {
    return {
      list: null
    }
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      transactionList().then(response => {
        this.list = response.data.items.slice(0, 7)
      })
    }
  }
}
</script>
